﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace LiveProjectManager.Controllers
{
    public class ConfigController : Controller
    {
        protected static DDD.Services.ConfigService _service = new DDD.Services.ConfigService();


        //
        // GET: /Config
        public ActionResult Index(int paginateBy = 0, int page = 1)
        {
            return Json(
                DDD.Services.ConfigService.toDict(_service.getAll(paginateBy, page)),
                JsonRequestBehavior.AllowGet
            );
        }

    }
}
